package lp.polimi.treefinder.client;

import lp.polimi.treefinder.utils.ManagingMessage;

/**
 * A connection based on Managing Message passing.
 */
public interface Connection {

	public void initialize () throws Exception;
	
	public void send(ManagingMessage managingMessage) throws Exception;

	public void closeSocket();

	public ManagingMessage receive() throws Exception;

	public GenericSocket getSocket ();
	
}